package com.gpjcjl.adapter;

import android.content.Context;

import com.base.lib.SharedHelper;
import com.gpjcjl.Config;
import com.gpjcjl.R;
import com.gpjcjl.entity.Produce;
import com.zhy.adapter.recyclerview.base.ViewHolder;

import java.util.List;

/**
 * 子账号适配器
 *
 * @author yinbiao
 * @date 2020-10-26 09:28:37
 */
public class CompanyAdapter extends BaseRecyclerAdapter<Produce> {

    public CompanyAdapter(Context context, List<Produce> datas) {
        super(context, R.layout.item_company, datas);
    }

    @Override
    protected void convert(ViewHolder holder, Produce produce, int position) {
//        holder.setText(R.id.tv, produce.getName());
//        String default_company = SharedHelper.getInstance().getString(Config.DEFAULT_ITEM1, null);
//        holder.setVisible(R.id.iv, produce.getName().equals(default_company));
    }

}

